package com.sanhuo.idms.dao;

import com.sanhuo.idms.entity.Room;
import com.sanhuo.triild.Basic.BaseMapper;
import com.sanhuo.triild.annotation.Mapper;
import com.sanhuo.triild.annotation.Select;

@Mapper
public interface RoomMapper extends BaseMapper<Room> {

    //    @Select("select * from room where id = #{id}")
//    Room findById(String id);
//
//    @Select("select * from room")
//    List<Room> findAll();
//
//    @InsertProvider(type = RoomProvider.class, method = "insert")
//    void insert(Room room);
    @Select("select count(*) from room where num = #{num}")
    Integer countByNum(Integer num);

}
